package com.ruoyi.medicine.service.impl;

import com.ruoyi.medicine.domain.HisMedicineFactory;
import com.ruoyi.medicine.mapper.HisMedicineFactoryMapper;
import com.ruoyi.medicine.service.IHisMedicineFactoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: RuoYi-Vue-master
 * @ClassName HisMedicineFactoryServiceImpl
 * @description:
 * @author: peterZcx
 * @create: 2024-08-28 19:55
 * @Version 1.0
 */
@Service
public class HisMedicineFactoryServiceImpl implements IHisMedicineFactoryService {
    @Autowired
    private HisMedicineFactoryMapper hisMedicineFactoryMapper;
    @Override
    public List<HisMedicineFactory> selectHisMedicineFactory(HisMedicineFactory hisMedicineFactory) {
        return hisMedicineFactoryMapper.selectMedicineFactoryList(hisMedicineFactory);
    }

    @Override
    public HisMedicineFactory selectHisMedicineFactoryById(Long id) {
        return hisMedicineFactoryMapper.selectMedicineFactoryById(id);
    }

    @Override
    public int insertHisMedicineFactory(HisMedicineFactory hisMedicineFactory) {
        return hisMedicineFactoryMapper.insertMedicineFactory(hisMedicineFactory);
    }

    @Override
    public int updateHisMedicineFactory(HisMedicineFactory hisMedicineFactory) {
        return hisMedicineFactoryMapper.updateMedicineFactory(hisMedicineFactory);
    }

    @Override
    public int deleteHisMedicineFactory(Long id) {
        return hisMedicineFactoryMapper.deleteMedicineFactory(id);
    }
}
